﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace GPSTrackingWebsiteManager.ClassManager
{
    public class CustomExceptionManager
    {
        public static void Generate_Error_Object_RadGrid(string Message, ref Telerik.Web.UI.RadGrid Grid)
        {
            Grid.Controls.Add(new LiteralControl(Message));            
        }

        public static string Generate_Error(string Message)
        {           
            String[] lf = { "\r", "\n", "'" };
            return String.Join("", Message.Split(lf, StringSplitOptions.RemoveEmptyEntries));
        }      

    }
}